package at.codebase.web.servlets.admin;

import java.util.ArrayList;

import at.codebase.core.search.ItemSearch;
import at.codebase.web.util.LocalRequest.RequestInformation;
import at.codebase.web.util.servlet.SecureServlet;

public class BuildSearchIndex extends SecureServlet {

	@Override
	protected void initSecurityLevels(ArrayList<UserLevel> secLevels) {
		secLevels.add(UserLevel.ADMIN);
	}

	@Override
	protected void processRequestSecurityLevel(RequestInformation requestInfo,
			UserLevel level, RequestType requestType) {
		// FIXME
		ItemSearch.buildIndex();
	}

}
